package com.dlrb.spring6.i18n;

import java.util.Locale;
import java.util.ResourceBundle;

/**
 * @Project ：learn_spring
 * @File ：ResourceI18N.java
 * @IDE ：IntelliJ IDEA
 * @Author ：自由如风间
 * @Date ：2025/4/6 20:18
 * @Description ：For study.
 */

public class ResourceI18N {

    public static void main(String[] args) {
        ResourceBundle bundle = ResourceBundle.getBundle("messages",
                new Locale("zh", "CN"));
        String s = bundle.getString("test");
        System.out.println(s);
    }
}
